import {HttpStatus, MidwayHttpError} from "@midwayjs/core";

/**
 * @name: HttpError
 * @data: 2024/4/3 11:30
 */
export default class HttpError extends MidwayHttpError {
  constructor(code?:number,msg?:string) {
    super(msg?msg:"系统异常",code?code:HttpStatus.INTERNAL_SERVER_ERROR);
  }
}
